import React, { Component } from 'react'
import axios from "axios";

import UserCard from "../../components/card/Card";

class BossMain extends Component {
    constructor(props){
        super(props);
        this.state = {
            listData:[]
        }
    }

    render() {
        return (
            <div>
                <UserCard data={this.state.listData}></UserCard>
            </div>
        )
    }

    componentDidMount(){
        this.getList();
    }

    getList(){
        axios.get('/userapi/userlist?type=jobhunter').then(res => {
            if(res.data.code === 0){
                this.setState({
                    listData:res.data.data
                });
            }
        })
    }
}

export default BossMain;